<template>
  <div id="app">
    <a-config-provider :locale="cn">
      <router-view/>
    </a-config-provider>
  </div>
</template>

<script>
// 引入字体包
import cn from 'ant-design-vue/es/locale/zh_CN'
import moment from 'moment'
import 'moment/locale/zh-cn'

moment.locale('zh-cn')
export default {
  data () {
    return {
      cn
    }
  },
  methods: {}
}
</script>

<style lang="less" scoped>
// 初始化页面根节点
html, body, #app {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: 思源黑, serif;
  user-select: none;
  word-break: break-word;
  word-wrap: break-word;
}

// loading框设置无背景色
/deep/ .ant-spin-container::after {
  background-color: rgba(0, 0, 0, 0);
}

// 定义全局思源黑字体
@font-face {
  font-family: '思源黑';
  src: url('./assets/font/SYH.ttf');
}
</style>
